<%-- 
    Document   : inschrijven
    Created on : Jul 14, 2013, 4:51:13 PM
    Author     : Logic
--%>

<%@page import="java.sql.Date"%>
<%@page import="info.toegepaste.www.beans.Alumnus"%>
<%@page import="info.toegepaste.www.beans.Account"%>
<%@page import="info.toegepaste.www.beans.Event"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Inschrijven</title>
        <link rel="stylesheet" type="text/css" href="style.css"/>
    </head>
    <body>
        <form action="RegistratieServlet" method="get">
            <a href="index.jsp"><h1>Alumni</h1></a>
            <%
                Account login = (Account) session.getAttribute("login");
                Alumnus alumnus = (Alumnus) session.getAttribute("alumnus");
                java.util.Date today = new java.util.Date();
                java.sql.Date sqlToday = new java.sql.Date(today.getTime());
                Event event = (Event)request.getAttribute("event");
            %>

            <table>
                <tr><td><p>Hier kan u zich inschrijven voor een event.</p><br></td></tr>
                <tr><td><label>EventID: </label></td><td><input type="text" name="eventID" readonly value="<%=event.getEventID()%>"/></td></tr>
                <tr><td><label>Eventnaam: </label></td><td><input type="text" name="eventnaam" readonly value="<%=event.getEventnaam()%>"</td></tr>
                <tr><td><label>Eventbeschrijving: </label></td><td><textarea name="eventbeschrijving" readonly cols="40" rows="4"><%=event.getEventBeschrijving()%></textarea></td></tr>
                <tr><td></td></tr>
                <tr><td><label>AlumnusID: </label></td><td><input type="text" name="alumnusID" readonly value="<%=alumnus.getAlumnusID()%>"/></td></tr>
                <tr><td><label>Alumnus naam: </label></td><td><input type="text" name="alumnumvoornaam" readonly value="<%=alumnus.getVoornaam()%>"/></td></tr>
                <tr><td><label>Huidige datum: </label></td><td><input type="text" name="huigidedatum" readonly value="<%=sqlToday%>"/></td></tr>
                <tr><td><label>Opmerkingen:</label></td><td><input type="text" name="opmerkingen"/></td></tr>
                <tr><td><label>Aanwezig</label></td><td><SELECT name="aanwezig"><option>True</option><option>False</option></SELECT></td></tr>
                <br>
                <tr><td><form action="RegistratieServlet" method="GET">
                            <input type="submit" name="inschrijven" value="Inschrijven"/>
                        </form></td></tr>
            </table>
        </form>
    </body>
</html>
